package com.key.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @author wen
 * @create 2023-02-24 14:52
 */
@ApiModel("查找归还单")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReturnDTO {
    //当前页码数
    @ApiModelProperty(name = "currentPage",notes = "当前页码数",dataType = "int",required = true)
    private Integer currentPage;
    //每页显示记录数
    @ApiModelProperty(name = "pageSize",notes = "每页显示记录数",dataType = "int",required = true)
    private Integer pageSize;

    //单据状态
    @ApiModelProperty(name = "states",notes = "“已审批，未审批”",dataType = "String",required = true)
    private String states;
    @ApiModelProperty(name = "returnNumber",notes = "归还单号",dataType = "String")
    private String returnNumber;
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd",timezone="GMT+8")
    @ApiModelProperty(name = "borrowDate",notes = "借用日期",required = true,value = "yyyy-MM-dd")
    private Timestamp borrowDate;
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd",timezone="GMT+8")
    @ApiModelProperty(name = "actualReturnTime",notes = "实际归还时间",required = true,value = "yyyy-MM-dd")
    private Timestamp actualReturnTime;
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd",timezone="GMT+8")
    @ApiModelProperty(name = "estimatedReturnTime",notes = "预计归还时间",required = true,value = "yyyy-MM-dd")
    private Timestamp estimatedReturnTime;
    @ApiModelProperty(name = "borrower",notes = "借用人",dataType = "String")
    private String borrower;
    @ApiModelProperty(name = "handlers",notes = "处理人",dataType = "String")
    private String handlers;
      @ApiModelProperty(name = "returnRemarks",notes = "归还备注",dataType = "String")
    private String returnRemarks;


}
